home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: cirrus.seas.ucla.edu!orachat
- From: orachat@cirrus.seas.ucla.edu (Orachat Chieu)
- Subject: question about tcsetpgrp()
- Sender: news@seas.ucla.edu (News Daemon)
- Message-ID: <DKxxCM.BIH@seas.ucla.edu>
- Date: Wed, 10 Jan 1996 00:57:58 GMT
- X-Nntp-Posting-Host: cirrus.seas.ucla.edu
- Organization: School of Engineering and Applied Sciences, UCLA
-
- Hi:
-
- I'm using Solaris 2.3. My program does the following.
-
- The parent and the child processes have the same pseudo terminal as the
- controlling terminal. The parent is the session leader. The parent
- has both the master and slave sides of the pty open. The child only has
- the slave side open. The parent and the child is in different process groups.
-
- The parent can put the child's process group into the foreground
- process group successfully by using the following code:
-
- tcsetpgrp (slavepty, child_process_group);
-
- When the child process has stopped, the parent trys to put the
- child's process group into the background process group by
-
- tcsetpgrp (slavepty, parent_process_group);
-
- but the system call fails with I/O error, EIO.
-
- I would like to know what I need to do to put the child's process group
- into the background process group.
-
- Any help or hint would be appreciated. Thank you very much.
-
- If you need a short sample code, I will write up one.
-
- Orachat Chieu
-